//
// Created by 崔世强 on 2018/3/19.
// Copyright (c) 2018 Facebook. All rights reserved.
//

import Foundation
import UIKit

class ChatBaseController:UIViewController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
    }
    
    
    func alert(title: String?, msg:String?,actions:[UIAlertAction]) {
        let alertController = UIAlertController(title: title, message: msg, preferredStyle: .alert)
        actions.forEach { action in
            alertController.addAction(action)
        }
        self.present(alertController, animated: true, completion: nil)
    }
}
